package com.xinzhidi.web.equipment.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * 存档AddDto对象 equipment_archives
 *
 * @author cx
 * @date 2023-07-12
 */
@ApiModel(value = "存档对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class EquipmentArchivesAddDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "存档类型0小区1楼栋2单元")
    @NotNull(message = "存档类型不能为空")
    @Min(value = 0, message = "存档类型不能比0小")
    private Long type;

    @ApiModelProperty(value = "阀门开度")
    @NotBlank(message = "阀门开度不能为空")
    @Size(max = 100, message = "阀门开度长度不能大于100")
    private String valveOpen;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    private Long unitId;

    @ApiModelProperty(value = "备注")
    @NotNull(message = "备注不能为空")
    @Size(max = 100, message = "备注长度不能大于100")
    private String remark;

}
